<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算器</title>
    <link rel="stylesheet" href="./cal.css" />
<script src="./cal.js"></script>
</head>

<body>
    <div class="container">
        <h1>简易计算器lorem</h1>
        <form id="cal">
            <input type="text" id="display">
            <br />
            <input type="button" class="btn op" value="%" onclick="get(this.value)">
            <input type="button" id="clear" class="btn op" value="C">
            <input type="button" class="btn op" value="->" onclick="back()">
            <input type="button" class="btn op" value="log" onclick="log_()">
            <br />
            <input type="button" class="btn op" value="!" onclick="fac(this.value)">
            <input type="button" class="btn op" value="sin" onclick="tri(this.value)">
            <input type="button" class="btn op" value="cos" onclick="tri(this.value)">
            <input type="button" class="btn op" value="tan" onclick="tri(this.value)">
            <br />
            <input type="button" class="btn op" value="√" onclick="sq(this.value)">
            <input type="button" class="btn op" value="*" onclick="get(this.value)">
            <input type="button" class="btn op" value="/" onclick="get(this.value)">
            <input type="button" class="btn op" value="pow" onclick="pow()">
            <br />
            <input type="button" class="btn number" value="7" onclick="get(this.value)">
            <input type="button" class="btn number" value="8" onclick="get(this.value)">
            <input type="button" class="btn number" value="9" onclick="get(this.value)">
            <input type="button" class="btn op" value="+/-" onclick="add()">
            <br />
            <input type="button" class="btn number" value="4" onclick="get(this.value)">
            <input type="button" class="btn number" value="5" onclick="get(this.value)">
            <input type="button" class="btn number" value="6" onclick="get(this.value)">
            <input type="button" class="btn op" value="-" onclick="get(this.value)">
            <br />
            <input type="button" class="btn number" value="1" onclick="get(this.value)">
            <input type="button" class="btn number" value="2" onclick="get(this.value)">
            <input type="button" class="btn number" value="3" onclick="get(this.value)">
            <input type="button" class="btn op" value="+" onclick="get(this.value)">
            <br />
            <input type="button" class="btn number" value="0" onclick="get(this.value)">
            <input type="button" class="btn number" value="." onclick="get(this.value)">
            <input type="button" class="btn sp" value="=" onclick="calculates()">

        </form>
<footer>
界面参考菜鸟教程
</footer>
    </div>


</body>
<script src="./cal.js"></script>

</html>